#ifndef __TIMER5_H__
#define __TIMER5_H__

#include "gd32f4xx.h"
#include "systick.h"
#include "Timer_config.h"

#define TIMERX				TIMER5
#define TIMERX_RCU		    RCU_TIMER5
#define TIMERX_PSC		    RCU_TIMER_PSC_MUL4

void Timer5_init();
void Timer5_config(uint32_t prescaler, uint32_t period);

#if TIMER5_INT_CALLBACK
extern void Timer5_on_interrupt();
#endif

#endif